package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.TenantPackage;
import com.yugao.fintech.draper.auth.dto.TenantPackageDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface TenantPackageConvert {

	TenantPackageConvert INSTANCE = Mappers.getMapper(TenantPackageConvert.class);

	TenantPackageDTO convert(TenantPackage tenantPackage);

	TenantPackage convert(TenantPackageDTO tenantPackage);

	List<TenantPackageDTO> convert(List<TenantPackage> list);

	Page<TenantPackageDTO> convert(Page<TenantPackage> list);

}
